package com.example.OneToOne.service;

import com.example.OneToOne.entity.Author;
import com.example.OneToOne.entity.Book;
import com.example.OneToOne.repository.AuthorRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AuthorAndBookService {
    public void saveAll();
    public List<Author> findAllAuthor();
    public List<Book> findAllBook();
    public Book findByAuthor_id(int id);
    public Author findByBook_id(int id);
    public Book getOneBook(int id);
    public Author getOneAuthor(int id);
    public String delByAuthorId(int id);
    public Author updateAuthorById(int id,Author author);
}
